#ifndef PROJECTIONIMAGE_H
#define PROJECTIONIMAGE_H

#include <QLabel>
#include <QMouseEvent>
// #include "ui_ProjectionImage.h"

class ProjectionImage : public QLabel
{
	Q_OBJECT

public:
	ProjectionImage(QWidget *parent = 0);
	~ProjectionImage();
	static const int NO_BUTTON = 0; 
	static const int LEFT_BUTTON = 1; 
	static const int RIGHT_BUTTON = 2; 
signals:
	void getXY(int x, int y, bool press, int button);
	void removeCurrentInformation();
protected:
	void  mousePressEvent(QMouseEvent * mouseEvent);
	void  mouseReleaseEvent(QMouseEvent * mouseEvent);
	void  mouseMoveEvent (QMouseEvent * mouseEvent);
	void  leaveEvent (QEvent * e);
private:
//	Ui::ProjectionImage ui;
	int mX;
	int mY;
	int mButton;
};

#endif // PROJECTIONIMAGE_H
